package org.jeecg.modules.activiti.service.Impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.activiti.entity.SignTable;
import org.jeecg.modules.activiti.mapper.SignTableMapper;
import org.jeecg.modules.activiti.service.SignTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SignTableServiceImpl extends ServiceImpl<SignTableMapper, SignTable> implements SignTableService {

    @Resource
    SignTableMapper signTableMapper;

    @Override
    public int deleteByProceId(String proceid){
        return signTableMapper.deleteByProceid(proceid);
    }
    @Override
    public List<SignTable> getDataListByBackTaskDef(String proceid, String taskDefKey){
        return signTableMapper.getDataListByBackTaskDef(proceid,taskDefKey);
    }
    @Override
    public int deleteForBackTask(String proceid,String startTime){
        return signTableMapper.deleteForBackTask(proceid,startTime);
    }

    @Override
    public List<SignTable> getDataListByProceId(String proceid) {
        return signTableMapper.getDataListByProceId(proceid);
    }
}
